{template 'yp','center_header'}
<style type="text/css">
#right{margin-top:0px;}
</style>
<div id="main">
{template "yp","center_left"}
<div id="right">
{if $job==0}
<div class="tag_1"><a href="{BUSINESSDIR}?file=collect&action=manage" class="s_3">我的收藏</a><a href="{BUSINESSDIR}?file=collect&action=manage&job=1" >被收藏的</a></div>
<table cellpadding="0" cellspacing="1" class="table_list">
  <tr>
<th>标题</th>
<th width="120">收藏时间</th>
<th width="110">操作</th>
  </tr>
{loop $infos $info}
<tr>
<td class="align_left">
<a href="{$info[url]}" target="_blank">{$info[title]}</a>
</td>
<td>{date('Y-m-d H:i',$info[addtime])}</td>
<td><a href="javascript:confirmurl('{BUSINESSDIR}?file=collect&action=delete&cid={$info[cid]}','确认要删除此信息吗？')">删除</a></td>
</tr>
{/loop}
</table>
{else}
<div class="tag_1"><a href="{BUSINESSDIR}?file=collect&action=manage">我的收藏</a><a href="{BUSINESSDIR}?file=collect&action=manage&job=1" class="s_3">被收藏的</a></div>
<table cellpadding="0" cellspacing="1" class="table_list">
  <tr>
<th>标题</th>
<th width="120">收藏人</th>
<th width="120">收藏时间</th>
<th width="40">发消息</th>
  </tr>
{loop $infos $info}
<tr>
<td class="align_left">
<a href="{$info[url]}" target="_blank">{$info[title]}</a>
</td>
<td>{username($info[userid])}</td>
<td>{date('Y-m-d H:i',$info[addtime])}</td>
<td class="align_c"><a href="{$MODULE[message][url]}send.php?userid={$info[vid]}" target="_blank"><img src="yp/images/message.gif"></a></td>
</tr>
{/loop}
</table>
{/if}
<div id="pages">{$pages}</div>
	  </div>
	</div>
<div class="clear"></div>
{template 'phpcms','footer'}